import config from "@/config"
import http from "@/utils/request"

export default {
	edition:{
		lists: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/lists`,
			name: "获取打版列表",
			// get: async function(data={}){
			// 	return await http.get(this.url, data);
			// }
            get: async function(params){
				return await http.get(this.url, params);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/shop.shopTemplate/add`,
            name: "添加打版",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
		edit: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/edit`,
			name: "修改打版",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/delete`,
			name: "删除打版",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		cancel: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/cancel`,
			name: "取消打板",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        complete: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/printingCompleted`,
			name: "完成打板",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        addComment: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/addComment`,
			name: "添加评语",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        editPricing: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/editPricing`,
			name: "修改核价",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        signFor: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/signFor`,
			name: "签收",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        examine: {
            url: `${config.API_URL}/adminapi/shop.shopTemplate/examine`,
            name: "审核通过/拒绝",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        completeModify: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/completeModify`,
			name: "修改中/完成修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        query: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/getMaterialSpecList`,
			name: "获取物料信息",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        maintainData: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/maintainData`,
			name: "维护资料",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/detail`,
			name: "获取打版详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        temDetail: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/getOrderGoodsDetail`,
			name: "点击下单的详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        createOrder: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/createOrder`,
			name: "创建下单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        process: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/reportingWork`,
			name: "本厂工序",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        report: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/enterReportingWork`,
			name: "报工",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        reportList: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/getTemplateProcessReportList`,
			name: "报工审批列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        reportAudit: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/reportingAudit`,
			name: "报工审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        templateCounting: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/templateCounting`,
			name: "版单数量统计",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        devReport: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/staffDevelopReportExport`,
			name: "导出",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        templateCountingDetail: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/templateCountingDetail`,
			name: "版单数量统计详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        templateScheduleList: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/templateScheduleList`,
			name: "版单进度追踪",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        templateScheduleDetail: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/templateScheduleDetail`,
			name: "版单进度追踪详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        reportTable: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/getTemplateReport`,
			name: "版单报表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
        templatePurchase: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/templatePurchase`,
			name: "报工审核",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        createBill: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/makeTemplatePayBill`,
			name: "生成结算单",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        printStatus: {
			url: `${config.API_URL}/adminapi/shop.shopTemplate/addTemplatePrintLog`,
			name: "点击打印版单 -- 切换状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
	apply:{
		lists: {
			url: `${config.API_URL}/adminapi/shop.shopApply/lists`,
			name: "获取供应商列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/shop.shopApply/edit`,
			name: "修改供应商",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/shop.shopApply/add`,
			name: "添加供应商",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopApply/delete`,
			name: "删除供应商",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		deleteAll: {
			url: `${config.API_URL}/adminapi/shop.shopApply/deleteAll`,
			name: "删除供应商",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		update_status: {
			url: `${config.API_URL}/adminapi/shop.shopApply/update_status`,
			name: "修改供应商状态",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
	},
    bank:{
        lists: {
			url: `${config.API_URL}/adminapi/shop.shopApply/bankAccountLists`,
			name: "获取供应商银行列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/shop.shopApply/addBankAccount`,
            name: "添加银行",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        edit: {
			url: `${config.API_URL}/adminapi/shop.shopApply/editBankAccount`,
			name: "修改银行",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopApply/deleteBankAccount`,
			name: "删除银行",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/shop.shopApply/updateBankAccountStatus`,
			name: "供应商禁用状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_default: {
			url: `${config.API_URL}/adminapi/shop.shopApply/setDefaultBankAccount`,
			name: "供应商默认银行",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
    template:{
        lists: {
			url: `${config.API_URL}/adminapi/shop.shopTemplateProcessMode/lists`,
			name: "获取打板工序模板列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
        add: {
            url: `${config.API_URL}/adminapi/shop.shopTemplateProcessMode/add`,
            name: "添加模板",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
        edit: {
			url: `${config.API_URL}/adminapi/shop.shopTemplateProcessMode/edit`,
			name: "修改模板",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.shopTemplateProcessMode/delete`,
			name: "删除模板",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/shop.shopApply/updateBankAccountStatus`,
			name: "供应商禁用状态",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_default: {
			url: `${config.API_URL}/adminapi/shop.shopApply/setDefaultBankAccount`,
			name: "供应商默认银行",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
    },
}
